//
//  XLZ_BaseModel.m
//  XLZChat
//
//  Created by 徐昊 on 2016/10/18.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "XLZ_BaseModel.h"

@implementation XLZ_BaseModel
- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}
+ (XLZ_BaseModel *)modelWithDic:(NSDictionary *)dic {
    return [[self alloc] initWithDic:dic];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
@end
